import axios from 'axios'
import qs from "qs";

export async function getOrders(){
    let resp = await axios.get('/api/settlementOrder/list');
    return resp.data.data;
}

export async function getOrdersByParams(queryParams){
    let resp = await axios.post('/api/settlementOrder/list_by_query',
        qs.stringify({
            inventorySeq:queryParams.inventorySeq,
        settlementStatus:queryParams.settlementStatus,
    })
    );
    return resp.data.data;
}